import type {LoginData, UserRes} from "@/api/user/types";
import http from "@/utils/http";

/**
 * 登录
 * @param data
 */
export function login(data: LoginData){
    return http.post<string>('/admin/acl/index/login', data)
}

/**
 * 获取用户信息
 */
export function getUserInfo(){
    return http.get<UserRes>('/admin/acl/index/info')
}


export function logout(){
    return http.post('/admin/acl/index/logout')
}